package cn.codergege.packagename.service;

import java.util.List;

import cn.codergege.packagename.model.Department;

public interface DepartmentService {

    int deleteByPrimaryKey(Integer id) throws Exception;

    int insert(Department record) throws Exception;

    int insertSelective(Department record) throws Exception;

    Department selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Department record) throws Exception;

    int updateByPrimaryKey(Department record) throws Exception;
    
	Department getOne(int id);

    List<Department> getAll();
}
